<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="ajax" uri="javawebparts/ajaxparts/taglib" %>

<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>

<%@ taglib prefix="sx" uri="/struts-dojo-tags"%><head>
	<sx:head extraLocales="en-us,nl-nl,de-de" />
</head>


<s:form method="post" action="findBySmartSearch.htm" theme="simple">
	<table width="100%">
		<tr>
			<td>
				<div class="blue-text16" style="margin: 0px 0px 0px 0px">
					<s:text name="smartsearch.title" />
				</div>
				<div class="header-separator-bg" style="margin: 10px 5px 17px 0px"></div>
				<div style="margin: 0px 0px 0px 0px" class="common-text">
					<s:text name="smartsearch.para1" />
				</div>
		<tr>
			<td>
				<table class="common-text">
					<tr>
						<td>
							<s:actionerror cssClass="error-text" />
							<s:fielderror cssClass="error-text" />
						</td>
					</tr>
					<tr>
						<td>
							<table>
								<tr>
									<td class="common-text">
										<s:text name="smartsearch.para2" />
									</td>
									<td class="common-text">
										<s:textfield cssClass="textfield" theme="simple"
											name="titleValue" maxlength="50" />
										<s:text name="smartsearch.req" />
									</td>
								</tr>
							</table>
						</td>
					</tr>
					<tr>
						<td>
							<table width="100%">
								<tr>
									<td width="195" class="common-text">
										<s:checkbox name="titleAndDescription" fieldValue="true" />
										<s:text name="smartsearch.description" />
										<a href="help/searchtips.htm" class="home-navi-link-bold"><s:text name="smartsearch.tips" /></a>
									</td>
								</tr>
							</table>
						</td>
					</tr>
					<tr>
						<td>
							<div class="header-separator-bg"
								style="margin: 10px 5px 17px 0px"></div>
						</td>
					</tr>
					<tr>
						<td>
							<table>
								<tr>
									<td class="common-text">
										<s:text name="smartsearch.category" />
									</td>
									<td class="common-text">
										<select name="categories" id="smartcategories" class="search-textmenu">
				                      		<option value="0"><s:text name="category_menu_main" /> (<s:property value="totalCategories" />)</option>
				                      	<s:iterator value="generalCategoriesSearch">
				                      		<option value="<s:property value="categoryId" />"><s:property value="%{categoryName}" /> (<s:property value="%{count}" />)</option>
				                      	</s:iterator>
				                      	</select>
				                  		<ajax:event ajaxRef="smartSearch/updateSearchBoxByCat" />
									</td>
								</tr>
								<tr>
									<td class="common-text">
										<s:text name="smartsearch.type" />
									</td>
									<td class="common-text">
										<select name="ItemType" id="SmartItemType" class="search-textmenu">
				                      		<option value="0"><s:text name="category.menu.allForSale" /> (<s:property value="totalType" />)</option>
				                      	<s:iterator value="itemTypeSearch">
				                      		<option value="<s:property value="id" />"><s:property value="%{type}" /> (<s:property value="%{count}" />)</option>
				                      	</s:iterator>
				                      </select>
				                      <ajax:event ajaxRef="smartSearch/updateSearchBoxByType" />
									</td>
								</tr>
							</table>
						</td>
					</tr>
					<tr>
						<td>
							<table>
								<tr>
									<td class="common-text">
										<s:text name="smartsearch.language" />
									</td>
									<td class="common-text">
										<select name="languages" id="smartlanguages" class="search-textmenu">
				                      		<option value="0"><s:text name="language_menu_main" /> (<s:property value="totalLanguages" />)</option>
				                      	<s:iterator value="languagesSearch">
				                      		<option value="<s:property value="languageCode" />"><s:property value="%{languageName}" /> (<s:property value="%{count}" />)</option>
				                      	</s:iterator>
				                      	</select>
				                      	<ajax:event ajaxRef="smartSearch/updateSearchBoxByLang" />

									</td>
									<td class="common-text">
										<s:text name="smartsearch.currency" />
									</td>
									<td class="common-text">
										<s:select name="items.currency.id" headerKey="" headerValue="%{getText('currencies_option_all')}" cssClass="textfield" list="currency" listKey="id" listValue="currency" />
									</td>
								</tr>
							</table>
						</td>
					</tr>
					<tr>
						<td>
							<table>
								<tr>
									<td class="common-text">
										<s:text name="smartsearch.sortby" />
									</td>
									<td class="common-text">
										<select name="sortby" class="textfield" style="width: 225px;">
											<option value="">
												--Select Value--
											</option>
											<option value="endsoon">
												<s:text name="favouritesearch.time.endingsoon" />
											</option>
											<option value="newlist">
												<s:text name="favouritesearch.time.newlist" />
											</option>
											<option value="endtoday">
												<s:text name="favouritesearch.time.endtoday" />
											</option>
											<option value="newtoday">
												<s:text name="favouritesearch.time.newtoday" />
											</option>
										</select>
									</td>
								</tr>
							</table>
						</td>
					</tr>
					<tr>
						<td>
							<div class="header-separator-bg"
								style="margin: 10px 5px 17px 0px"></div>
						</td>
					</tr>
					<tr>
						<td>
							<table>
								<tr>
									<td class="search-text" colspan="2">
										<s:text name="smartsearch.region" />
									</td>
								</tr>
								<tr>
									<td class="common-text" colspan="2">
										<select name="locations" id="smartlocations" class="search-textmenu">
				                      		<option value="0"><s:text name="location_menu_main" /> (<s:property value="totalLocations" />)</option>
				                      	<s:iterator value="locationCategoriesSearch">
				                      		<option value="<s:property value="categoryId" />"><s:property value="%{categoryName}" /> (<s:property value="%{count}" />)</option>
				                      	</s:iterator>
				                      	</select>
										<ajax:event ajaxRef="smartSearch/updateSearchBoxByLoc" />
									</td>
								</tr>
								<tr>
									<td class="common-text">
										<s:text name="smartsearch.location" />
									</td>

									<td class="common-text">
										<s:textfield cssClass="textfield" theme="simple" name="city"
											maxlength="50" />
										<s:text name="smartsearch.sub" />
									</td>
								</tr>
							</table>
						</td>
					</tr>
					<tr>
						<td>
							<div class="header-separator-bg"
								style="margin: 10px 5px 17px 0px"></div>
						</td>
					</tr>
					<tr>
						<td>
							<table>
								<tr>
									<td class="search-text">
										<s:text name="smartsearch.price" />
									</td>
								</tr>
								<tr>
									<td class="common-text">
										<s:text name="smartsearch.range" />
									</td>
									<td class="common-text">
										<s:textfield cssClass="textfield" theme="simple" name="priceFrom"
											maxlength="50" />
									</td>
									<td class="common-text">
										<s:text name="smartsearch.to" />
									</td>
									<td class="common-text">
										<s:textfield cssClass="textfield" theme="simple" name="priceTo"
											maxlength="50" />
									</td>
								</tr>
								<tr>
									<td class="common-text">
										<s:text name="smartsearch.buyprice" />
									</td>
									<td class="common-text">
										<s:textfield cssClass="textfield" theme="simple" name="buyFrom"
											maxlength="50" />
									</td>
									<td class="common-text">
										<s:text name="smartsearch.to" />
									</td>
									<td class="common-text">
										<s:textfield cssClass="textfield" theme="simple" name="buyTo"
											maxlength="50" />
									</td>
								</tr>
							</table>
						</td>
					</tr>
					<tr>
						<td>
							<div class="header-separator-bg"
								style="margin: 10px 5px 17px 0px"></div>
						</td>
					<tr>
						<td>
							<table>
								<tr>
									<td class="search-text" colspan="2">
										<s:text name="smartsearch.itemnumber" /> <s:text name="optional" />
									</td>
								</tr>
								<tr>
									<td class="common-text" colspan="2">
										<s:text name="smartsearch.itemnumber1" />
									</td>
								</tr>
								<tr>
									<td class="common-text">
										<s:text name="smartsearch.itemnr" />
									</td>
									<td class="common-text">
										<s:textfield cssClass="textfield" theme="simple" name="itemId"
											maxlength="50" />
										<s:text name="smartsearch.req" />
									</td>
								</tr>
							</table>
						</td>
					</tr>
					<tr>
						<td>
							<div class="header-separator-bg"
								style="margin: 10px 5px 17px 0px"></div>
						</td>
					</tr>
					<tr>
						<td>
							<table>
								<tr>
									<td class="search-text">
										<s:text name="smartsearch.sellersearch" /> <s:text name="optional" />
									</td>
								</tr>
								<tr>
									<td class="common-text">
										<s:text name="smartsearch.sellerlist" />
									</td>
								</tr>
								<tr>
									<td class="common-text">
										<s:text name="smartsearch.searchbyseller_id" />
									</td>
									<td class="common-text">
										<s:textfield cssClass="textfield" theme="simple" name="sellerId"
											maxlength="50" />
										<s:text name="smartsearch.req" />
									</td>
								</tr>
							</table>
						</td>
					</tr>
					<tr>
						<td>
							<div class="header-separator-bg"
								style="margin: 10px 5px 17px 0px"></div>
						</td>
					</tr>
					<tr>
						<td>
							<table>
								<tr>
									<td class="search-text">
										<s:text name="smartsearch.biddersearch" /> <s:text name="optional" />
									</td>
								</tr>
								<tr>
									<td class="common-text">
										<s:text name="smartsearch.auctionlist" />
									</td>
								</tr>
								<tr>
									<td class="common-text">
										<s:text name="smartsearch.bidder" />
									</td>
									<td class="common-text">
										<s:textfield cssClass="textfield" theme="simple" name="bidderId"
											maxlength="50" />
										<s:text name="smartsearch.req" />
									</td>
								</tr>
							</table>
						</td>
					</tr>
					<tr>
						<td>
							<div class="header-separator-bg"
								style="margin: 10px 5px 17px 0px"></div>
						</td>
					</tr>
					<tr>
						<td>
							<table>
								<tr>
									<td class="search-text">
										<s:text name="searchbyendtime" />
									</td>
								</tr>
								<tr>
									<td class="common-text">
										<s:text name="searchbyendtime.msg" />
									</td>
								</tr>
								<tr>
									<td class="common-text">
										<s:text name="searchbyendtime.label" />
									</td>
									<td class="common-text">
										<sx:datetimepicker value="%{'today'}" toggleType="wipe"
															toggleDuration="300" name="endTime" />
									<!-- (required) -->
									</td>
								</tr>
							</table>
						</td>
					</tr>
					<tr>
						<td>
							<div class="header-separator-bg"
								style="margin: 10px 5px 17px 0px"></div>
						</td>
					</tr>
					<tr>
						<td>
							<table>
								<tr>
									<td class="search-text">
										<s:text name="searchbyquantity" />
									</td>
								</tr>
								<tr>
									<td class="common-text">
										<s:text name="searchbyquantity.msg" />
									</td>
								</tr>
								<tr>
									<td class="common-text">
										<s:text name="searchbyquantity.label" />
									</td>
									<td class="common-text">
										<s:textfield cssClass="textfield" theme="simple" name="quantity"
											maxlength="50" />
									<!-- (required) -->
									</td>
								</tr>
							</table>
						</td>
					</tr>
					<tr>
						<td>
							<div class="header-separator-bg"
								style="margin: 10px 5px 17px 0px"></div>
						</td>
					</tr>
					<tr>
						<td colspan="4" align="center">
							<table border="0" cellpadding="0">
								<tbody>
									<tr>
										<td align="center">
											<table border="0" cellspacing="0" cellpadding="0">
												<tr>
													<td><img src="images/middle/btn-grey-left1.gif" alt=" " width="6" height="23" /></td>
													<td class="btn-grey-middle1 "><s:submit value="Search" theme="simple" cssClass="submit-btn-common" /></td>
													<td><img src="images/middle/btn-grey-right1.gif" alt=" " width="6" height="23" /></td>
												</tr>
											</table>

										</td>

										<td align="left" valign="top" nowrap="nowrap">
											<s:text name="smartsearch.results" />
										</td>
										<td>
											<select name="pageSize" size="1" class="textfield">
												<option value="5">
													5
												</option>
												<option value="10">
													10
												</option>
												<option value="25" selected="selected">
													25
												</option>
												<option value="50">
													50
												</option>
												<option value="75">
													75
												</option>
												<option value="100">
													100
												</option>
												<option value="150">
													150
												</option>
												<option value="200">
													200
												</option>
												<option value="250">
													250
												</option>
											</select>
										</td>
									</tr>
								</tbody>
							</table>
						</td>
					</tr>
				</table>
			</td>
		</tr>
	</table>
</s:form>